package com.ruoyi.project.para.authorizer.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.para.authorizer.mapper.BranchBankAuthorizerMapper;
import com.ruoyi.project.para.authorizer.domain.BranchBankAuthorizer;
import com.ruoyi.project.para.authorizer.service.IBranchBankAuthorizerService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 二级分行管理授权人员Service业务层处理
 *
 * @author ruoyi
 * @date 2020-03-14
 */
@Service
public class BranchBankAuthorizerServiceImpl extends ServiceImpl<BranchBankAuthorizerMapper, BranchBankAuthorizer> implements IBranchBankAuthorizerService
{
    @Autowired
    private BranchBankAuthorizerMapper branchBankAuthorizerMapper;

    /**
     * 查询二级分行管理授权人员
     *
     * @param id 二级分行管理授权人员ID
     * @return 二级分行管理授权人员
     */
    @Override
    public BranchBankAuthorizer selectBranchBankAuthorizerById(String id)
    {
        return branchBankAuthorizerMapper.selectBranchBankAuthorizerById(id);
    }

    /**
     * 查询二级分行管理授权人员列表
     *
     * @param branchBankAuthorizer 二级分行管理授权人员
     * @return 二级分行管理授权人员
     */
    @Override
    public List<BranchBankAuthorizer> selectBranchBankAuthorizerList(BranchBankAuthorizer branchBankAuthorizer)
    {
        return branchBankAuthorizerMapper.selectBranchBankAuthorizerList(branchBankAuthorizer);
    }

    /**
     * 新增二级分行管理授权人员
     *
     * @param branchBankAuthorizer 二级分行管理授权人员
     * @return 结果
     */
    @Override
    public int insertBranchBankAuthorizer(BranchBankAuthorizer branchBankAuthorizer)
    {
        return branchBankAuthorizerMapper.insertBranchBankAuthorizer(branchBankAuthorizer);
    }

    /**
     * 修改二级分行管理授权人员
     *
     * @param branchBankAuthorizer 二级分行管理授权人员
     * @return 结果
     */
    @Override
    public int updateBranchBankAuthorizer(BranchBankAuthorizer branchBankAuthorizer)
    {
        return branchBankAuthorizerMapper.updateBranchBankAuthorizer(branchBankAuthorizer);
    }

    /**
     * 删除二级分行管理授权人员对象
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteBranchBankAuthorizerByIds(String ids)
    {
        return branchBankAuthorizerMapper.deleteBranchBankAuthorizerByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除二级分行管理授权人员信息
     *
     * @param id 二级分行管理授权人员ID
     * @return 结果
     */
    @Override
    public int deleteBranchBankAuthorizerById(String id)
    {
        return branchBankAuthorizerMapper.deleteBranchBankAuthorizerById(id);
    }
}
